package cn.tedu.spring.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author Justin Parker
 * @Date 2024/8/2 0002 11:23
 * @Version 1.0
 */
public class TextUserDao {
    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.di");
        UserDao userDao = context.getBean(UserDao.class);

        System.out.println(userDao);

        UserService userService = context.getBean(UserService.class);
        System.out.println(userService);
    }
}
